///<reference path='../../typings/tsd.d.ts'/>
import hprose = require("hprose");
import logger from "../utils/LogUtil";//日志

/**
 * rpc传输数据捕获过滤器．这个主要用于调试阶段
 */
function captureFilterInput(data){
    logger.info("input");
    logger.info(hprose.BytesIO.toString(data));
    return data;
}

function captureFilterOutput(data){
    logger.info("output");
    logger.info(hprose.BytesIO.toString(data));
    return data;
}

export default {
    inputFilter: captureFilterInput,
    outputFilter: captureFilterOutput
};